package cn.tuling.org.service;

import cn.tuling.basic.util.PageList;
import cn.tuling.org.domain.Writer;
import cn.tuling.org.query.WriterQuery;

import java.util.List;

public interface WriterService {
    // 查询全部
    List<Writer> findAll();

    // 添加
    void add(Writer department);

    // 删除
    void delete(Long id);

    // 修改
    void update(Writer department);

    // 分页
    PageList<Writer> queryPage(WriterQuery query);
}
